package com.wzq.tools.string;

import org.apache.commons.lang3.ObjectUtils;

/**
 * 字符串处理工具类
 *
 * @author weizq
 * @since 2021/2/26
 */
public class StringHandle {


    /**
     * 将object对象转换成Sting
     *
     * @param objectOption 转换对象
     * @return java.lang.String
     * @throws
     * @author weizq
     * @since 2021/2/26
     */
    public static <T> String objectToString(T objectOption) {
        if (ObjectUtils.allNotNull(objectOption)) {
            return objectOption.toString();
        }
        return null;
    }
}
